require 'rake/clean'
require 'rubygems'
require 'rake/packagetask'
require 'rake/task'
#START:cucumber_task
require 'cucumber'
require 'cucumber/rake/task'
#END:cucumber_task

# Rake::Task.new do |rd|
  # rd.main = "README.rdoc"
  # rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*")
  # rd.title = 'Your application title'
# end

spec = eval(File.read('xml_editor.gemspec'))

# Rake::PackageTask.new(spec) do |pkg|
  # :noversion
# end

#START:unit_test
# require 'rake/testtask'
# Rake::TestTask.new do |t|
  # t.libs << "test"
  # t.test_files = FileList['test/tc_*.rb']
# end
#END:unit_test

CUKE_RESULTS = 'results.html'
CLEAN << CUKE_RESULTS
CLOBBER << 'tmp'

#START:cucumber_task
Cucumber::Rake::Task.new(:features) do |t|
  t.cucumber_opts = "features --format pretty -x"
  t.fork = false
end
#END:cucumber_task

task :default => :test
